#include<stdio.h>
void change(int p[][7], int n)
{
	int i = 0;
	int j = 0;
	for (i = 0; i < 7; i++)
	{
		for (j = 0; j < 7; j++)
		{
			if (i > j)
			{
				int t = 0;
				t = p[i][j];
				p[i][j] = p[j][i];
				p[j][i] = t;
			}
		}
	}

}
int main()
{
	int a[7][7] = {
{11,12,13,14,15,16,17},
{21,22,23,24,25,26,27},
{31,32,33,34,35,36,37},
{41,42,43,44,45,46,47},
{51,52,53,54,55,56,57},
{61,62,63,64,65,66,67},
{71,72,73,74,75,76,77}
	};
	change(a, 7);
	for (int i = 0; i < 7; i++)
	{
		
		
			for (int j = 0; j < 7; j++)
			{
				
					printf("%d ", a[i][j]);

			}
			printf("\n");
		
	}
}